package com.springboot.cloud.demos.ribbon.rest;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.demos.ribbon.service.BannerService;
import com.springboot.cloud.demos.ribbon.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public class BannerController {

    @Autowired
    private BannerService bannerService;

    @GetMapping("/banner")
    public Result banner() {
        return bannerService.banner();
    }

}
